<template>
 <van-nav-bar
    :title="title"
    left-text="返回"
    left-arrow
    @click-left="onclickLeft"
  /> 
</template>
  
  <script>

  export default {
    props: {
      title: String,
          },
     
      methods: {
      // 左边绑定的点击事件
      onclickLeft() {
                  this.$emit('onclickLeft');
              },
      // @onclickLeft="onclickLeft"
    },
  }
  </script>
  
  <style scoped>
   
  </style>